package ru.agiledev.akb.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import ru.agiledev.akb.shared.User;

/**
 * Created by a.kirillov
 * Date: 4/3/11 Time: 11:06 AM
 */
@RemoteServiceRelativePath("authServlet")
public interface AuthorizationService extends RemoteService {
	public User checkLogin(String userName, String password);

	public User isSessionAlive();

	public void logout();

	/**
	 *
	 * @gwt.typeArgs <com.mycompany.client.bean.Author>
	 *
	 */
	//public List getUserList(User bean);

	public User getUser(Long id);
}
